import axios from '@/utils/request'




// 第一个方法:
export function getList(params) {
  return axios({
    url: '/findBll',
    method: 'get',
    params
  })
}

export function delBatch(params) {
  return axios({
    url: '/delBatch',
    method: 'get',
    params
  })
}

export function deleteById(params) {
  return axios({
    url: '/delete',
    method: 'get',
    params
  })
}
//
export function addBuyPlan(data) {
  return axios({
    url: '/addBuyPlan',
    method: 'post',
    data
  })
}
//
export function edit(data) {
  return axios({
    url: '/edit',
    method: 'post',
    data
  })
}




//
// export function findPrimaryUnit() {
//   return axios({
//     url: '/md/unit/list/primaryUnit',
//     method: 'get',
//   })
// }
